package com.shareroad.dubboweb.frame.quartz;

import java.io.File;

import com.shareroad.dubboweb.frame.config.DubboClientPath;
import com.shareroad.dubboweb.frame.dao.data.DubboWebData;
import com.shareroad.dubboweb.frame.util.JarUtil;

public class LoadDubboClientsJOB {
	public void work(){
		try{
			String dirPath = DubboClientPath.getUploadPath()+"/";
			File dir = new File(dirPath);
			for(File f : dir.listFiles()){
				System.out.println(f.getPath());
				DubboWebData.addData(JarUtil.parseJar(f.getPath()));
			}
		}catch(Exception e){
			e.printStackTrace();
		}

	}
}
